Cardiac output measurement timed to instructed exhalation